<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <h3>hello tomcat</h3>
<a href="paramServlet">点击跳转servlet</a>
<!--  get方式-->
<form action="paramServlet" method="get">
    姓名<input type="text" name="username" placeholder="请输入用户名"><br>
    密码<input type="password" name="password" placeholder="请输入密码"><br>
    性别<input type="radio" name="sex" value="female">女
    <input type="radio" name="sex" value="male">男<br>
    <input type="checkbox" name="hobby" value="swimming">游泳
    <input type="checkbox" name="hobby" value="pingPong">乒乓球
    <input type="checkbox" name="hobby" value="eat">吃美食<br>
    <input type="submit" value="登录">
</form>
<!--  post方式-->
  <form action="paramServlet" method="post">
      姓名<input type="text" name="username" placeholder="请输入用户名"><br>
      密码<input type="password" name="password" placeholder="请输入密码"><br>
      性别<input type="radio" name="sex" value="female">女
      <input type="radio" name="sex" value="male">男<br>
      <input type="checkbox" name="hobby" value="swimming">游泳
      <input type="checkbox" name="hobby" value="pingPong">乒乓球
      <input type="checkbox" name="hobby" value="eat">吃美食<br>
      <input type="submit" value="登录">
</body>
</html>